<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>chigraph: lib/core/include/chi/GraphModule.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="chigraphDoxygenIcon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">chigraph
   &#160;<span id="projectnumber">master</span>
   </div>
   <div id="projectbrief">Systems programming language written for beginners in LLVM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('GraphModule_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">GraphModule.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="GraphModule_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#ifndef CHI_GRAPH_MODULE_HPP</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#define CHI_GRAPH_MODULE_HPP</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="ChiModule_8hpp.html">chi/ChiModule.hpp</a>&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="core_2include_2chi_2Fwd_8hpp.html">chi/Fwd.hpp</a>&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;boost/bimap.hpp&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacechi.html">chi</a> {</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="structchi_1_1GraphModule.html">   16</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structchi_1_1GraphModule.html">GraphModule</a> : <span class="keyword">public</span> <a class="code" href="structchi_1_1ChiModule.html">ChiModule</a> {</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <a class="code" href="structchi_1_1GraphModule.html#adeeeec5c69812ddeb43a64d3009a4eda">GraphModule</a>(<a class="code" href="structchi_1_1Context.html">Context</a>&amp; cont, boost::filesystem::path <a class="code" href="structchi_1_1ChiModule.html#a92ab6d528ac41a91b6ac21ededfccc38">fullName</a>,</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;                <span class="keyword">const</span> std::vector&lt;boost::filesystem::path&gt;&amp; <a class="code" href="structchi_1_1ChiModule.html#a9c0d4b1b54bca0194ea4061ae4883779">dependencies</a> = {});</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <span class="comment">// No copy or move -- pointer only</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <a class="code" href="structchi_1_1GraphModule.html#adeeeec5c69812ddeb43a64d3009a4eda">GraphModule</a>(<span class="keyword">const</span> <a class="code" href="structchi_1_1GraphModule.html">GraphModule</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <a class="code" href="structchi_1_1GraphModule.html#adeeeec5c69812ddeb43a64d3009a4eda">GraphModule</a>(<a class="code" href="structchi_1_1GraphModule.html">GraphModule</a>&amp;&amp;)      = <span class="keyword">delete</span>;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <a class="code" href="structchi_1_1GraphModule.html">GraphModule</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="structchi_1_1GraphModule.html">GraphModule</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <a class="code" href="structchi_1_1GraphModule.html">GraphModule</a>&amp; operator=(<a class="code" href="structchi_1_1GraphModule.html">GraphModule</a>&amp;&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="comment">// ChiModule interface</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1GraphModule.html#a133c0595e0bb888f958e9769838f6c0c">nodeTypeFromName</a>(boost::string_view name, <span class="keyword">const</span> nlohmann::json&amp; jsonData,</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;                            std::unique_ptr&lt;NodeType&gt;* toFill) <span class="keyword">override</span>;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <a class="code" href="structchi_1_1DataType.html">DataType</a> <a class="code" href="structchi_1_1GraphModule.html#af24296727c4121733d9995c122b6e7bc">typeFromName</a>(boost::string_view name) <span class="keyword">override</span>;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    std::vector&lt;std::string&gt; <a class="code" href="structchi_1_1GraphModule.html#a53a1a284ab878783e74a957bb3b711b3">nodeTypeNames</a>() <span class="keyword">const override</span>;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    std::vector&lt;std::string&gt; <a class="code" href="structchi_1_1GraphModule.html#aba3074c1ff4bd8afb816faec1372ce15">typeNames</a>() <span class="keyword">const override</span>;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1GraphModule.html#ab745d8ac6ffb5b4385c24379dd4a60d2">addForwardDeclarations</a>(llvm::Module&amp; module) <span class="keyword">const override</span>;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1GraphModule.html#a9b73bbbfa91d6a2f92bcca270bdb7b2f">generateModule</a>(llvm::Module&amp; module) <span class="keyword">override</span>;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    boost::bimap&lt;unsigned, NodeInstance*&gt; <a class="code" href="structchi_1_1GraphModule.html#a0f4f97f458bbbacd6ff3c1be55441b98">createLineNumberAssoc</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1GraphModule.html#a5cd9fb1738336d5d382ebb50753bda3e">saveToDisk</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    boost::filesystem::path <a class="code" href="structchi_1_1GraphModule.html#a1c1a23b9aa7967948e97dc9650099188">sourceFilePath</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>* <a class="code" href="structchi_1_1GraphModule.html#af61aef2776a0e219ffca2d22e109909f">getOrCreateFunction</a>(std::string name, std::vector&lt;NamedDataType&gt; dataIns,</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                                       std::vector&lt;NamedDataType&gt; dataOuts,</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                                       std::vector&lt;std::string&gt;   execIns,</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                                       std::vector&lt;std::string&gt; execOuts, <span class="keywordtype">bool</span>* inserted = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structchi_1_1GraphModule.html#a75f7c9ac46d89574ef2a2290ccea4fe8">removeFunction</a>(boost::string_view name, <span class="keywordtype">bool</span> deleteReferences = <span class="keyword">true</span>);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphModule.html#a75f7c9ac46d89574ef2a2290ccea4fe8">removeFunction</a>(<a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>&amp; func, <span class="keywordtype">bool</span> deleteReferences = <span class="keyword">true</span>);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>* <a class="code" href="structchi_1_1GraphModule.html#a84474b5d18517fe46cc94560f746d6ce">functionFromName</a>(boost::string_view name) <span class="keyword">const</span>;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structchi_1_1GraphModule.html#a45255dbf09b56ac93b35ebc4d77bba5c">   95</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;std::unique_ptr&lt;GraphFunction&gt;&gt;&amp; <a class="code" href="structchi_1_1GraphModule.html#a45255dbf09b56ac93b35ebc4d77bba5c">functions</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mFunctions; }</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keyword">const</span> std::vector&lt;std::unique_ptr&lt;GraphStruct&gt;&gt;&amp; structs()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mStructs; }</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <a class="code" href="structchi_1_1GraphStruct.html">GraphStruct</a>* <a class="code" href="structchi_1_1GraphModule.html#aad5b2fd794606b66cec221408cf07af4">structFromName</a>(boost::string_view name) <span class="keyword">const</span>;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <a class="code" href="structchi_1_1GraphStruct.html">GraphStruct</a>* <a class="code" href="structchi_1_1GraphModule.html#a63117b26fc55e86e740926994f54fe55">getOrCreateStruct</a>(std::string name, <span class="keywordtype">bool</span>* inserted = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structchi_1_1GraphModule.html#a779d5c125ca7b556b114bb448f83dc3b">removeStruct</a>(boost::string_view name);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphModule.html#a779d5c125ca7b556b114bb448f83dc3b">removeStruct</a>(<a class="code" href="structchi_1_1GraphStruct.html">GraphStruct</a>&amp; tyToDel);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="structchi_1_1GraphModule.html#a5bbfa421aee82aa51eb10d6b97accbef">  132</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1GraphModule.html#a5bbfa421aee82aa51eb10d6b97accbef">setCEnabled</a>(<span class="keywordtype">bool</span> newValue) { mCEnabled = newValue; }</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="structchi_1_1GraphModule.html#ac251cc6b4242642f6601c8c3607f5747">  136</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structchi_1_1GraphModule.html#ac251cc6b4242642f6601c8c3607f5747">cEnabled</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mCEnabled; }</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1GraphModule.html#a24162d01532244d8945128b71af5fc48">createNodeTypeFromCCode</a>(boost::string_view code, boost::string_view functionName,</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                                   std::vector&lt;std::string&gt;   clangArgs,</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                                   std::unique_ptr&lt;NodeType&gt;* toFill);</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="structchi_1_1GraphModule.html#a10cfac308c6e0f1fa38be5513b2380cc">  150</a></span>&#160;    boost::filesystem::path <a class="code" href="structchi_1_1GraphModule.html#a10cfac308c6e0f1fa38be5513b2380cc">pathToCSources</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="structchi_1_1GraphModule.html#a1c1a23b9aa7967948e97dc9650099188">sourceFilePath</a>().parent_path() / (<a class="code" href="structchi_1_1ChiModule.html#a22ac89bd0e334cb920847973fa77e8ff">shortName</a>() + <span class="stringliteral">&quot;.c&quot;</span>);</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    }</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    std::vector&lt;std::unique_ptr&lt;GraphFunction&gt;&gt; mFunctions;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    std::vector&lt;std::unique_ptr&lt;GraphStruct&gt;&gt;   mStructs;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="keywordtype">bool</span> mCEnabled = <span class="keyword">false</span>;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;};</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;}  <span class="comment">// namespace chi</span></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="preprocessor">#endif  // CHI_GRAPH_MODULE_HPP</span></div><div class="ttc" id="structchi_1_1GraphModule_html_a5cd9fb1738336d5d382ebb50753bda3e"><div class="ttname"><a href="structchi_1_1GraphModule.html#a5cd9fb1738336d5d382ebb50753bda3e">chi::GraphModule::saveToDisk</a></div><div class="ttdeci">Result saveToDisk() const</div><div class="ttdoc">Serialize to disk in the context. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00514">GraphModule.cpp:514</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html"><div class="ttname"><a href="structchi_1_1GraphFunction.html">chi::GraphFunction</a></div><div class="ttdoc">this is an AST-like representation of a function in a graph It is used for IDE-like behavior...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00023">GraphFunction.hpp:23</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a9b73bbbfa91d6a2f92bcca270bdb7b2f"><div class="ttname"><a href="structchi_1_1GraphModule.html#a9b73bbbfa91d6a2f92bcca270bdb7b2f">chi::GraphModule::generateModule</a></div><div class="ttdeci">Result generateModule(llvm::Module &amp;module) override</div><div class="ttdoc">Generate a llvm::Module from the module. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00435">GraphModule.cpp:435</a></div></div>
<div class="ttc" id="core_2include_2chi_2Fwd_8hpp_html"><div class="ttname"><a href="core_2include_2chi_2Fwd_8hpp.html">Fwd.hpp</a></div><div class="ttdoc">Forward declares all the chigraph data types. </div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a10cfac308c6e0f1fa38be5513b2380cc"><div class="ttname"><a href="structchi_1_1GraphModule.html#a10cfac308c6e0f1fa38be5513b2380cc">chi::GraphModule::pathToCSources</a></div><div class="ttdeci">boost::filesystem::path pathToCSources() const</div><div class="ttdoc">Get the path to the .c directory. It is not garunteed to exist, even if cEnabled() is true...</div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8hpp_source.html#l00150">GraphModule.hpp:150</a></div></div>
<div class="ttc" id="structchi_1_1GraphStruct_html"><div class="ttname"><a href="structchi_1_1GraphStruct.html">chi::GraphStruct</a></div><div class="ttdoc">A class holding a compound type defined in a GraphModule. </div><div class="ttdef"><b>Definition:</b> <a href="GraphStruct_8hpp_source.html#l00018">GraphStruct.hpp:18</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a0f4f97f458bbbacd6ff3c1be55441b98"><div class="ttname"><a href="structchi_1_1GraphModule.html#a0f4f97f458bbbacd6ff3c1be55441b98">chi::GraphModule::createLineNumberAssoc</a></div><div class="ttdeci">boost::bimap&lt; unsigned, NodeInstance * &gt; createLineNumberAssoc() const</div><div class="ttdoc">Create the associations from line number and function in debug info. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00794">GraphModule.cpp:794</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a45255dbf09b56ac93b35ebc4d77bba5c"><div class="ttname"><a href="structchi_1_1GraphModule.html#a45255dbf09b56ac93b35ebc4d77bba5c">chi::GraphModule::functions</a></div><div class="ttdeci">const std::vector&lt; std::unique_ptr&lt; GraphFunction &gt; &gt; &amp; functions() const</div><div class="ttdoc">Get functions. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8hpp_source.html#l00095">GraphModule.hpp:95</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a84474b5d18517fe46cc94560f746d6ce"><div class="ttname"><a href="structchi_1_1GraphModule.html#a84474b5d18517fe46cc94560f746d6ce">chi::GraphModule::functionFromName</a></div><div class="ttdeci">GraphFunction * functionFromName(boost::string_view name) const</div><div class="ttdoc">Get a function from the name. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00598">GraphModule.cpp:598</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_aad5b2fd794606b66cec221408cf07af4"><div class="ttname"><a href="structchi_1_1GraphModule.html#aad5b2fd794606b66cec221408cf07af4">chi::GraphModule::structFromName</a></div><div class="ttdeci">GraphStruct * structFromName(boost::string_view name) const</div><div class="ttdoc">Get a struct by name. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00817">GraphModule.cpp:817</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a5bbfa421aee82aa51eb10d6b97accbef"><div class="ttname"><a href="structchi_1_1GraphModule.html#a5bbfa421aee82aa51eb10d6b97accbef">chi::GraphModule::setCEnabled</a></div><div class="ttdeci">void setCEnabled(bool newValue)</div><div class="ttdoc">Set if C support is enabled. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8hpp_source.html#l00132">GraphModule.hpp:132</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a779d5c125ca7b556b114bb448f83dc3b"><div class="ttname"><a href="structchi_1_1GraphModule.html#a779d5c125ca7b556b114bb448f83dc3b">chi::GraphModule::removeStruct</a></div><div class="ttdeci">bool removeStruct(boost::string_view name)</div><div class="ttdoc">Remove a struct from the module by name. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00840">GraphModule.cpp:840</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_af61aef2776a0e219ffca2d22e109909f"><div class="ttname"><a href="structchi_1_1GraphModule.html#af61aef2776a0e219ffca2d22e109909f">chi::GraphModule::getOrCreateFunction</a></div><div class="ttdeci">GraphFunction * getOrCreateFunction(std::string name, std::vector&lt; NamedDataType &gt; dataIns, std::vector&lt; NamedDataType &gt; dataOuts, std::vector&lt; std::string &gt; execIns, std::vector&lt; std::string &gt; execOuts, bool *inserted=nullptr)</div><div class="ttdoc">Create a new function if it does&amp;#39;t already exist. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00545">GraphModule.cpp:545</a></div></div>
<div class="ttc" id="structchi_1_1ChiModule_html_a92ab6d528ac41a91b6ac21ededfccc38"><div class="ttname"><a href="structchi_1_1ChiModule.html#a92ab6d528ac41a91b6ac21ededfccc38">chi::ChiModule::fullName</a></div><div class="ttdeci">std::string fullName() const</div><div class="ttdoc">Get the full name of the module. </div><div class="ttdef"><b>Definition:</b> <a href="ChiModule_8hpp_source.html#l00061">ChiModule.hpp:61</a></div></div>
<div class="ttc" id="structchi_1_1Context_html"><div class="ttname"><a href="structchi_1_1Context.html">chi::Context</a></div><div class="ttdoc">The class that handles the loading, creation, storing, and compilation of modules It also stores a LL...</div><div class="ttdef"><b>Definition:</b> <a href="Context_8hpp_source.html#l00055">Context.hpp:55</a></div></div>
<div class="ttc" id="structchi_1_1ChiModule_html"><div class="ttname"><a href="structchi_1_1ChiModule.html">chi::ChiModule</a></div><div class="ttdoc">An abstract class that represents a module of code in Chigraph Can be compiled to a llvm::Module...</div><div class="ttdef"><b>Definition:</b> <a href="ChiModule_8hpp_source.html#l00024">ChiModule.hpp:24</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a1c1a23b9aa7967948e97dc9650099188"><div class="ttname"><a href="structchi_1_1GraphModule.html#a1c1a23b9aa7967948e97dc9650099188">chi::GraphModule::sourceFilePath</a></div><div class="ttdeci">boost::filesystem::path sourceFilePath() const</div><div class="ttdoc">Get the path to the source file It&amp;#39;s not garunteed to exist, because it could have not been saved...</div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00862">GraphModule.cpp:862</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_ac251cc6b4242642f6601c8c3607f5747"><div class="ttname"><a href="structchi_1_1GraphModule.html#ac251cc6b4242642f6601c8c3607f5747">chi::GraphModule::cEnabled</a></div><div class="ttdeci">bool cEnabled() const</div><div class="ttdoc">Gets if C support is enabled. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8hpp_source.html#l00136">GraphModule.hpp:136</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a53a1a284ab878783e74a957bb3b711b3"><div class="ttname"><a href="structchi_1_1GraphModule.html#a53a1a284ab878783e74a957bb3b711b3">chi::GraphModule::nodeTypeNames</a></div><div class="ttdeci">std::vector&lt; std::string &gt; nodeTypeNames() const override</div><div class="ttdoc">Get the possible node type names. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00779">GraphModule.cpp:779</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a63117b26fc55e86e740926994f54fe55"><div class="ttname"><a href="structchi_1_1GraphModule.html#a63117b26fc55e86e740926994f54fe55">chi::GraphModule::getOrCreateStruct</a></div><div class="ttdeci">GraphStruct * getOrCreateStruct(std::string name, bool *inserted=nullptr)</div><div class="ttdoc">Create a new struct in the module. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00824">GraphModule.cpp:824</a></div></div>
<div class="ttc" id="structchi_1_1ChiModule_html_a9c0d4b1b54bca0194ea4061ae4883779"><div class="ttname"><a href="structchi_1_1ChiModule.html#a9c0d4b1b54bca0194ea4061ae4883779">chi::ChiModule::dependencies</a></div><div class="ttdeci">const std::set&lt; boost::filesystem::path &gt; &amp; dependencies() const</div><div class="ttdoc">Get the dependencies. </div><div class="ttdef"><b>Definition:</b> <a href="ChiModule_8hpp_source.html#l00083">ChiModule.hpp:83</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_ab745d8ac6ffb5b4385c24379dd4a60d2"><div class="ttname"><a href="structchi_1_1GraphModule.html#ab745d8ac6ffb5b4385c24379dd4a60d2">chi::GraphModule::addForwardDeclarations</a></div><div class="ttdeci">Result addForwardDeclarations(llvm::Module &amp;module) const override</div><div class="ttdoc">Adds forward declartions for the functions in this module. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00425">GraphModule.cpp:425</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_aba3074c1ff4bd8afb816faec1372ce15"><div class="ttname"><a href="structchi_1_1GraphModule.html#aba3074c1ff4bd8afb816faec1372ce15">chi::GraphModule::typeNames</a></div><div class="ttdeci">std::vector&lt; std::string &gt; typeNames() const override</div><div class="ttdoc">Get the possible DataType names. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00416">GraphModule.cpp:416</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a133c0595e0bb888f958e9769838f6c0c"><div class="ttname"><a href="structchi_1_1GraphModule.html#a133c0595e0bb888f958e9769838f6c0c">chi::GraphModule::nodeTypeFromName</a></div><div class="ttdeci">Result nodeTypeFromName(boost::string_view name, const nlohmann::json &amp;jsonData, std::unique_ptr&lt; NodeType &gt; *toFill) override</div><div class="ttdoc">Create a node type that is in the module from the name and json. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00606">GraphModule.cpp:606</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_adeeeec5c69812ddeb43a64d3009a4eda"><div class="ttname"><a href="structchi_1_1GraphModule.html#adeeeec5c69812ddeb43a64d3009a4eda">chi::GraphModule::GraphModule</a></div><div class="ttdeci">GraphModule(Context &amp;cont, boost::filesystem::path fullName, const std::vector&lt; boost::filesystem::path &gt; &amp;dependencies={})</div><div class="ttdoc">Construct a GraphModule. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00409">GraphModule.cpp:409</a></div></div>
<div class="ttc" id="ChiModule_8hpp_html"><div class="ttname"><a href="ChiModule_8hpp.html">ChiModule.hpp</a></div><div class="ttdoc">Defines the ChiModule class. </div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_af24296727c4121733d9995c122b6e7bc"><div class="ttname"><a href="structchi_1_1GraphModule.html#af24296727c4121733d9995c122b6e7bc">chi::GraphModule::typeFromName</a></div><div class="ttdeci">DataType typeFromName(boost::string_view name) override</div><div class="ttdoc">Get a DataType from the name. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00771">GraphModule.cpp:771</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html"><div class="ttname"><a href="structchi_1_1GraphModule.html">chi::GraphModule</a></div><div class="ttdoc">Module that holds graph functions. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8hpp_source.html#l00016">GraphModule.hpp:16</a></div></div>
<div class="ttc" id="namespacechi_html"><div class="ttname"><a href="namespacechi.html">chi</a></div><div class="ttdoc">The namespace where chigraph lives. </div><div class="ttdef"><b>Definition:</b> <a href="BitcodeParser_8hpp_source.html#l00012">BitcodeParser.hpp:12</a></div></div>
<div class="ttc" id="structchi_1_1DataType_html"><div class="ttname"><a href="structchi_1_1DataType.html">chi::DataType</a></div><div class="ttdoc">A type of data Loose wrapper around llvm::Type*, except it knows which ChiModule it&amp;#39;s in and it embed...</div><div class="ttdef"><b>Definition:</b> <a href="DataType_8hpp_source.html#l00017">DataType.hpp:17</a></div></div>
<div class="ttc" id="structchi_1_1ChiModule_html_a22ac89bd0e334cb920847973fa77e8ff"><div class="ttname"><a href="structchi_1_1ChiModule.html#a22ac89bd0e334cb920847973fa77e8ff">chi::ChiModule::shortName</a></div><div class="ttdeci">std::string shortName() const</div><div class="ttdoc">Get the short name of the module (the last bit) </div><div class="ttdef"><b>Definition:</b> <a href="ChiModule_8hpp_source.html#l00058">ChiModule.hpp:58</a></div></div>
<div class="ttc" id="structchi_1_1Result_html"><div class="ttname"><a href="structchi_1_1Result.html">chi::Result</a></div><div class="ttdoc">The result object, used for identifiying errors with good diagnostics. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00072">Result.hpp:72</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a24162d01532244d8945128b71af5fc48"><div class="ttname"><a href="structchi_1_1GraphModule.html#a24162d01532244d8945128b71af5fc48">chi::GraphModule::createNodeTypeFromCCode</a></div><div class="ttdeci">Result createNodeTypeFromCCode(boost::string_view code, boost::string_view functionName, std::vector&lt; std::string &gt; clangArgs, std::unique_ptr&lt; NodeType &gt; *toFill)</div><div class="ttdoc">From C code, create a NodeType. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00866">GraphModule.cpp:866</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html_a75f7c9ac46d89574ef2a2290ccea4fe8"><div class="ttname"><a href="structchi_1_1GraphModule.html#a75f7c9ac46d89574ef2a2290ccea4fe8">chi::GraphModule::removeFunction</a></div><div class="ttdeci">bool removeFunction(boost::string_view name, bool deleteReferences=true)</div><div class="ttdoc">Remove a function from the module. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8cpp_source.html#l00568">GraphModule.cpp:568</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li><li class="navelem"><a class="el" href="dir_a2d5e495f4b604d04f57d90095a59dd6.html">core</a></li><li class="navelem"><a class="el" href="dir_a979adfa99d5a8626731f83d5067598b.html">include</a></li><li class="navelem"><a class="el" href="dir_afbc2aa4d9616322ddf4041ba4f8ade6.html">chi</a></li><li class="navelem"><a class="el" href="GraphModule_8hpp.html">GraphModule.hpp</a></li>
    <li class="footer">Generated on Sat Sep 16 2017 17:41:35 for chigraph by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
